package com.moli.iov.manager.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.moli.iov.manager.model.po.AuthorityAuth;
import com.moli.iov.manager.model.po.AuthorityRoleAuth;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 角色菜单中间表 Mapper 接口
 * </p>
 *
 * @author fudaohui
 * @since 2018-12-12
 */
public interface AuthorityRoleAuthMapper extends BaseMapper<AuthorityRoleAuth> {


    /**
     * 根据roleId查询关联的authid的列表
     * @param roleId
     * @return
     */
    List<Long> queryAuthIdsByRoled(@Param("roleId") long roleId, @Param("selectStatus") int selectStatus);


    int deleteAuthorityRoleBatchByroleds(@Param("roleId") Long roleId);

}
